<?php

namespace App\Library\Requests\Login;

use App\Library\Requests\Base\BaseDTORequest;

class LoginWechatRequest extends BaseDTORequest
{
    public function rules(): array
    {
        return [
            'phoneCode' => 'required|string|size:64|regex:' . __('com.phoneCodeReg'),
            'code' => 'nullable|string|size:32|regex:' . __('com.codeReg'),
            'inviteCode' => 'nullable|string|size:6|regex:' . __('com.inviteCodeReg'),
            'plateform' => 'nullable|integer|between:1,3',
            'type' => 'nullable|string|in:wx,mini,app',
        ];
    }
}
